/****************************************************************************************
 Copyright © 2003-2103 ZTEsoft Corporation. All rights reserved. Reproduction or       <br>
 transmission in whole or in part, in any form or by any means, electronic, mechanical <br>
 or otherwise, is prohibited without the prior written consent of the copyright owner. <br>
 ****************************************************************************************/
package com.iwhalecloud.bss.kite.cucc.dataservice.mapper.spec;

import com.iwhalecloud.bss.kite.dataservice.entity.spec.ProdAttr;
import com.ztesoft.bss.base.extmapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CuccProdAttrExtMapper extends BaseMapper<ProdAttr> {

    List<ProdAttr> listProdAttrExtByProdId(@Param("fileName") String fileName);
    
    /**
     * 根据fieldName与productId/cateId查
     * 如果fieldName与productId查不到，会根据fieldName与cateId查
     * @param fileName
     * @param productId
     * @param cateId
     * @return
     */
    List<ProdAttr> listProdAttrExtByCondition(@Param("filedName") String filedName, @Param("productId") String productId, @Param("cateId") String cateId);
    
    List<ProdAttr> listProdAttrExtByFieldName(@Param("filedName") String filedName);
    
    List<ProdAttr> listProdAttrExtByProductId(@Param("productId") String productId);
    
}
